<!doctype html>
<meta charset="utf-8">
<title>jsSDK demo</title>
<div id="jssdk"></div>
<script type="text/JavaScript" src="https://recaptcha.net/recaptcha/api.js?render=6LedTwImAAAAABT_b1yOmjmjZ9l-UbYqq1uE0K_L"></script>
<script src="../dist/uniLoginSdk.umd.min.js"></script>
<script>
  uniLoginSdk.init({
      el: "#jssdk",
      mode: 'dev',
      language: 'en-us',
      // language: 'tr-tr',
      // language: 'zh-cn',
      // WEB端传A0001, 客户端传A0002
      app_key: 'A0001',
      from: '',
      // 网页平台 pc/mobile 默认pc
      platform: 'pc',
      // 场景值：website 网站、member 会员中心、client 游戏客户端
      scene: 'website',
      // 登录成功
      loginSuccess: (data) => {
        console.log('> 登录成功 ');
        console.log(data);
      },
      thirdLogin: (data) => {
        console.log('> 调用三方登录');
        console.log(data);
      },
    },
    function () {
      console.log("初始化完成");
    })

</script>
